<?php
App::uses('AppController', 'Controller');

class PagesController extends AppController {
	
	var $name = "Pages";// ten cua Controller
    var $helpers = array('Paginator','Html');
    var $components = array('Session');
    var $paginate = array();
		
	public function home() {
		$this->layout = false;
		$this->set("root_category", 0);
		$this->set("category_id", 0);

		$this->loadModel('Category');
		$category_xenang = $this->Category->findById(1);
		$category_xedao = $this->Category->findById(9);
		$category_xexuc = $this->Category->findById(10);
		$category_xeui = $this->Category->findById(11);
		$category_mayphat = $this->Category->findById(25);
		$category_xetai = $this->Category->findById(18);
		$category_dienthoai = $this->Category->findById(33);
		$category_laptop = $this->Category->findById(34);
		$category_dongho = $this->Category->findById(41);

		$this->set('category_xenang',$category_xenang);
		$this->set('category_xedao',$category_xedao);
		$this->set('category_xexuc',$category_xexuc);
		$this->set('category_xeui',$category_xeui);
		$this->set('category_mayphat',$category_mayphat);
		$this->set('category_xetai',$category_xetai);
		$this->set('category_dienthoai',$category_dienthoai);
		$this->set('category_laptop',$category_laptop);
		$this->set('category_dongho',$category_dongho);
	}
}
